24  Package Development

24.1 Coding Club: Creating an R Package

Making an R package develops generic coding skills and gives you valuable insight to how R works. We’ll cover setting up a package project, creating functions, documenting them with roxygen, creating vignettes, unit testing, package testing, version control with git, and distribution with github.

You will need only very basic R skills and a willingness to learn. The only people this would not be suitable for are those with zero previous experience in R (unless you know you pick up coding languages quickly). If you can install packages and have written an analysis script, you’ll be fine.

Link: https://psyteachr.github.io/intro-r-pkgs/

24.2 HTTP testing in R

This book is meant to be a free, central reference for developers of R packages accessing web resources, to help them have a faster and more robust development. Our aim is to develop an useful guidance to go with the great recent tools that vcr, webmockr, httptest and presser are.

Link: https://books.ropensci.org/http-testing/

24.3 Pack YouR Code

The ultimate goal of this book is to teach you how to create a relatively simple R package based on the so-called S3 classes.

Paid: Free preview of first 4 chapters $13

Link: http://www.gastonsanchez.com/packyourcode/

24.4 R packages

Packages are the fundamental units of reproducible R code. They include reusable R functions, the documentation that describes how to use them, and sample data. In this section you’ll learn how to turn your code into packages that others can easily download and use. Writing a package can seem overwhelming at first. So start with the basics and improve it over time. It doesn’t matter if your first version isn’t perfect as long as the next version is better.

Link: https://r-pkgs.org/

24.5 rOpenSci Packages Development, Maintenance, and Peer Review

This book is a package development guide for authors, maintainers, reviewers and editors of rOpenSci.

Link: https://devguide.ropensci.org/index.html

 

Created and maintained by Oscar Baruffa.
Keen to support the site? You're most welcome to Buy Me a Coffee at ko-fi.com

For updates, sign up to my newsletter